<?php get_header(); ?>
<div id="container">
<div id="content">
	<div id="postlist">
	<?php if(have_posts()) : while (have_posts()) : the_post(); ?>
    <div class="content_text"> 
    <div class="title"> 
    <a href="<?php the_author_meta('user_url'); ?>" class="avatar"><?php echo get_avatar( get_the_author_meta('user_email'), '43', '' ); ?>"<span><?php echo get_avatar( get_the_author_meta('user_email'), '43', '' ); ?>"</span></a> 
    <i class="line_h"></i> 
    <h3><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3> 
    <p><?php the_author_posts_link(); ?> / <?php the_category(',') ?> / <?php the_time('Y年m月d日'); ?> / 相关标签：<?php the_tags('', ' ', ''); ?></p> 
    <span class="comments"><?php comments_popup_link('0', '1', '%', 'up'); ?></span>
    </div> 
    <!--content_banner--> 
    <div class="content_banner"> 
    

	<?php get_img_link($post); ?>

    <div class="text">
    <?php the_content(); ?>

	<div id="page_links">
		<ul>
			<?php
			$bookmarks = get_bookmarks('title_li=&categorize=0&orderby=rand');
			if ( !empty($bookmarks) ) {
				foreach ($bookmarks as $bookmark) {
				echo '<li><img src="'. $bookmark->link_url . '/favicon.ico" onerror="javascript:this.src=\''.get_bloginfo('template_url').'/images/links_default.gif\'" /><a href="' . $bookmark->link_url . '" title="' . $bookmark->link_description . '" target="_blank" >' . $bookmark->link_name . '</a></li>';
				}
			}
			?>
		</ul>
	</div>
	
    </div> 
    </div> 
	</div>
	<?php endwhile; endif; ?>

	<div id="comments" class="comments"><?php comments_template('', true); ?></div>
	</div>
</div>
<?php get_sidebar(); ?>
</div>
<?php get_footer(); ?>